import sys
import os
def main():
if len(sys.argv) >= 2:
    path = sys.argv[1]
else:
    path = "C:\Users\gseth\Desktop\Temp_daily"
    
dirList=os.listdir(path)
for files in dirList:
    if files.endswith(".txt"):
        print files

if __name__ == "__main__":
       main()
